<template>
  <div class="buyfooter">
    <p>应付:<span>￥888</span></p>
    <p @click="show = true">提交订单</p>
    <van-overlay :show="show">
      <div class="wrapper" @click.stop="show = false">
        <div class="block" >
          <span></span>
          <span></span>
          <p>掏钱 888元</p>
        </div>
      </div>
    </van-overlay>
  </div>
</template>

<script>
export default {
  name: "Buyfooter",
  data() {
    return {
      show: false,
    };
  }
};
</script>

<style scoped>
.buyfooter {
  width: 100%;
  height: 0.43rem;
  background-color: white;
  position: fixed;
  bottom: 0rem;
  z-index: 5;
  border-top: 0.01rem solid rgb(216, 216, 216);
}
.buyfooter > p:nth-child(1) {
  display: inline-block;
  position: absolute;
  top: 0.1rem;
  left: 0.2rem;
  color: red;
}
.buyfooter > p:nth-child(1) > span {
  font-size: 0.18rem;
}
.buyfooter > p:nth-child(2) {
  display: inline-block;
  width: 1.05rem;
  height: 0.34rem;
  background-color: red;
  text-align: center;
  line-height: 0.34rem;
  border-radius: 0.2rem;
  position: absolute;
  right: 0.1rem;
  top: 0.05rem;
  color: white;
}

.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.block {
  width: 340px;
  height: 260px;
  background-color: #fff;
}
.block>span{
  display: inline-block;
  width: 50%;
  height: 100%;
  background-repeat: no-repeat;
  background-size:170px 260px;
}
.block>span:nth-child(1){
  background-image: url(../../public/img/微信收款码.jpg);
}
.block>span:nth-child(2){
  background-image: url(../../public/img/支付宝收款码.jpg);
}
.block>p:nth-child(3){
  background-color:white;
  text-align: center;
  height: 0.3rem;
  color: red;
  line-height: 0.3rem;
}
</style>